package com.pap.rbac.user.auto.entity;

import java.io.Serializable;

import com.pap.base.entity.PapBaseEntity;
import com.pap.base.mybatis.plugin.annotation.MyBatisColumnAnnotation;
import com.pap.base.mybatis.plugin.annotation.MyBatisTableAnnotation;

@MyBatisTableAnnotation(name = "t_rbac_user", namespace = "com.pap.rbac.user.auto.mapper.UserMapper", remarks = " 修改点 ", aliasName = "t_rbac_user t_rbac_user")
public class User extends PapBaseEntity implements Serializable {
	/**
	 * 编码,所属表字段为t_rbac_user.CODE
	 */
	@MyBatisColumnAnnotation(name = "CODE", value = "t_rbac_user_CODE", chineseNote = "编码", tableAlias = "t_rbac_user")
	private String code;

	/**
	 * 姓名,所属表字段为t_rbac_user.NAME
	 */
	@MyBatisColumnAnnotation(name = "NAME", value = "t_rbac_user_NAME", chineseNote = "姓名", tableAlias = "t_rbac_user")
	private String name;

	/**
	 * 邮箱,所属表字段为t_rbac_user.EMAIL
	 */
	@MyBatisColumnAnnotation(name = "EMAIL", value = "t_rbac_user_EMAIL", chineseNote = "邮箱", tableAlias = "t_rbac_user")
	private String email;

	/**
	 * 登录名,所属表字段为t_rbac_user.LOGIN_NAME
	 */
	@MyBatisColumnAnnotation(name = "LOGIN_NAME", value = "t_rbac_user_LOGIN_NAME", chineseNote = "登录名", tableAlias = "t_rbac_user")
	private String loginName;

	/**
	 * 密码,所属表字段为t_rbac_user.PASSWORDS
	 */
	@MyBatisColumnAnnotation(name = "PASSWORDS", value = "t_rbac_user_PASSWORDS", chineseNote = "密码", tableAlias = "t_rbac_user")
	private String passwords;

	/**
	 * 电话,所属表字段为t_rbac_user.MOBILE
	 */
	@MyBatisColumnAnnotation(name = "MOBILE", value = "t_rbac_user_MOBILE", chineseNote = "电话", tableAlias = "t_rbac_user")
	private String mobile;

	/**
	 * 所属组织机构,所属表字段为t_rbac_user.ORGANIZATION_ID
	 */
	@MyBatisColumnAnnotation(name = "ORGANIZATION_ID", value = "t_rbac_user_ORGANIZATION_ID", chineseNote = "所属组织机构", tableAlias = "t_rbac_user")
	private String organizationId;

	/**
	 * 可用状态标识,所属表字段为t_rbac_user.DISABLE_FLAG
	 */
	@MyBatisColumnAnnotation(name = "DISABLE_FLAG", value = "t_rbac_user_DISABLE_FLAG", chineseNote = "可用状态标识", tableAlias = "t_rbac_user")
	private String disableFlag;

	/**
	 * 删除状态标识,所属表字段为t_rbac_user.DELETE_FLAG
	 */
	@MyBatisColumnAnnotation(name = "DELETE_FLAG", value = "t_rbac_user_DELETE_FLAG", chineseNote = "删除状态标识", tableAlias = "t_rbac_user")
	private String deleteFlag;

	/**
	 * 图标,所属表字段为t_rbac_user.ICON
	 */
	@MyBatisColumnAnnotation(name = "ICON", value = "t_rbac_user_ICON", chineseNote = "图标", tableAlias = "t_rbac_user")
	private String icon;

	/**
	 * 最近一次登录时间,所属表字段为t_rbac_user.LAST_LOGIN_TIME
	 */
	@MyBatisColumnAnnotation(name = "LAST_LOGIN_TIME", value = "t_rbac_user_LAST_LOGIN_TIME", chineseNote = "最近一次登录时间", tableAlias = "t_rbac_user")
	private String lastLoginTime;

	/**
	 * 备注,所属表字段为t_rbac_user.REMARK
	 */
	@MyBatisColumnAnnotation(name = "REMARK", value = "t_rbac_user_REMARK", chineseNote = "备注", tableAlias = "t_rbac_user")
	private String remark;

	/**
	 * 用户类型,所属表字段为t_rbac_user.USER_TYPE
	 */
	@MyBatisColumnAnnotation(name = "USER_TYPE", value = "t_rbac_user_USER_TYPE", chineseNote = "用户类型", tableAlias = "t_rbac_user")
	private String userType;

	private static final long serialVersionUID = 1L;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPasswords() {
		return passwords;
	}

	public void setPasswords(String passwords) {
		this.passwords = passwords;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(String organizationId) {
		this.organizationId = organizationId;
	}

	public String getDisableFlag() {
		return disableFlag;
	}

	public void setDisableFlag(String disableFlag) {
		this.disableFlag = disableFlag;
	}

	public String getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(String lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}
	
	@Override
	public String getDynamicTableName() {
		return "t_rbac_user";
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", code=").append(code);
		sb.append(", name=").append(name);
		sb.append(", email=").append(email);
		sb.append(", loginName=").append(loginName);
		sb.append(", passwords=").append(passwords);
		sb.append(", mobile=").append(mobile);
		sb.append(", organizationId=").append(organizationId);
		sb.append(", disableFlag=").append(disableFlag);
		sb.append(", deleteFlag=").append(deleteFlag);
		sb.append(", icon=").append(icon);
		sb.append(", lastLoginTime=").append(lastLoginTime);
		sb.append(", remark=").append(remark);
		sb.append(", userType=").append(userType);
		sb.append("]");
		return sb.toString();
	}
}